import { Component, OnInit } from '@angular/core';
import { SharedService } from '../shared.service';

@Component({
  selector: 'app-child',
  templateUrl: './child.component.html',
  styleUrls: ['./child.component.less']
})
export class ChildComponent implements OnInit {

  constructor(private service: SharedService) { }

  ngOnInit(): void {
  }

  sendMsg = () => {
    this.service.sentMessage('sendMsg Success');
  }

}
